package com.quality.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.quality.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 
 * @TableName quality_rule
 */
@TableName(value ="quality_rule")
@Data
public class QualityRule extends BaseEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "user_id")
    private Long userId;

    /**
     * 
     */
    @TableField(value = "group_id")
    private Integer groupId;

    /**
     * 
     */
    @TableField(value = "`database`")
    private String database;

    /**
     * 
     */
    @TableField(value = "type")
    private String type;

    /**
     * 
     */
    @TableField(value = "`table`")
    private String table;

    /**
     * 
     */
    @TableField(value = "`field`")
    private String field;

    /**
     * 
     */
    @TableField(value = "rule")
    private Integer rule;


    @TableField(value = "`begin`")
    private String begin;

    @TableField(value = "`end`")
    private String end;

    /**
     * 
     */
    @TableField(value = "patten")
    private String patten;

    /**
     * 
     */
    @TableField(value = "description")
    private String description;

    @TableField(value = "is_enable")
    private Boolean isEnable;

    @TableField(exist = false)
    private String groupName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}